Fixing bug that made the survey dialog not work

Just adding a snippet of code that I forgot.