minor query fix