fixed crash with searchBar