diff --git a/dataforge-meta/src/commonMain/kotlin/hep/dataforge/meta/Scheme.kt b/dataforge-meta/src/commonMain/kotlin/hep/dataforge/meta/Scheme.kt index 42a95deb..6482a139 100644 --- a/dataforge-meta/src/commonMain/kotlin/hep/dataforge/meta/Scheme.kt +++ b/dataforge-meta/src/commonMain/kotlin/hep/dataforge/meta/Scheme.kt @@ -18,7 +18,9 @@ public open class Scheme( public var items: MutableItemProvider = items internal set(value) { //Fix problem with `init` blocks in specifications - field = value.withDefault(field) + field = value.apply { + field.rootNode?.let { update(it) } + } } override var descriptor: NodeDescriptor? = descriptor