fix the validator