I have no idea how to replicate it or see any patterns but this has happened twice now. I ordered my troops to attack an enemy and my troops started marching towards the enemy the only problem is that their angle was way off in about 50 degrees or so.