Fix validator that was modifying the validated definition.