fix search bar bug