Fix QueryEnumerator usage