Fix queries without text.