fix bugs with assigning quests