fixed EnumField.validate