Fixed npc movement bug.