fixed 502 viewing search without a query