duration query fix [1/2]