Units tend to move out of position a lot even if I set them to hold position. Most of the time its range units trying to attack some random non-targeted enemy in the back for no reason whatsoever. Is there a option or a mod to prevent this?

I hope it isn't intended.