fixed QuerySpecification