Fix compile problem in Query Validator.