restored the missing query object