Fixing small bug resulting in no search results