Fixed some quirks of the search bar