Fixed bug in survey