bug fixes on search bar