Missing end in questionnaire model (syntax error)

This clearly causes everything to break.