fixed npc win crash