catching errors in queries; default search returns two urls