fixed an issue with npc menus remaining open