NPC editor resets after save/add