Bugfix while searching from the navbar