But this is why people use a model like Opus or Sol for planning and something like DS for implementation. Keep in mind deepseek 4.1 is a flash model.
(And belive me, Opus can be pretty stupid too)