fixed bug where when you typed in to the search bar, search would not work