query fix

query fix