It only happens to me when they change direction to face the enemy if they get close to a flank.