fixed bug with error if no required fields in survey.