fix timeBoundary query