Fix issue with wrong or missing classnames when using a enum value as default value