Fix find conditions in getSurveyId()