fix search bar behavior