fix search bar toggle bug