fixed bug in survey controller