I've found that adding "Make no mistakes." to my prompt usually helps with this kind of problem...
We are so many layers deep in AI hype that I honestly can’t tell if this is /s or not
Or if the code is really important, sometimes even “please make no mistakes” is necessary.
perhaps simply threatening to fire it would also do the trick...it sure has worked well on us for a long time now.