item query fixing