Fixed several issues with searchbar.