Fixed bug of end of survey.