Fixed a minor problem in Query.