Fixed validator for sublasses.
[#83401226]