Fix errors after ValidationResult changes.