error handling on search (again)