bugfixes for the searchbar