item query fix