Fix calculating total for quest