Fixed a bug in NPCQuest