corrected the errors from the search page