fix npc event.