Infantry and Villager having animation issues

Their modes are switching from "move" to "idle" and back every frame