fixed npc speed crashing