fix custom npc scripts
fix custom scripts (thanks Ben!)