fixed errors found in the validator