Fix search for only remote query.