fixed a minor bug with the search button