Fixed an error when finishing the questionnaire.