Fix out_of_range when adding single quest functions