fixed a bug in a survey