duration query fix [2/2]