small query fix