fixed npc creation