Minor error handling for search