fix a small bug preventing empty searches from showing results