Fix closed query for ITS