fixing queryAmbit() date