Fix class validation.