Fix queries without math.