Fixed a bug in submit survey function. Partly imported research survey.