fixed survey error handling