fixed search bar bug