fix a bug of Query and EntityQuery