fixes scripts NPC's