diff --git a/packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts b/packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts index 668a7e33b7..7ae2272cf8 100644 --- a/packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts +++ b/packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts @@ -714,11 +714,13 @@ export class KetSerializer implements Serializer { ); if (monomer instanceof AmbiguousMonomer) { - templateId = monomer.monomers.reduce( - (templateId, monomer) => - templateId + '_' + getMonomerUniqueKey(monomer.monomerItem), - '', - ); + templateId = + monomer.variantMonomerItem.id || + monomer.monomers.reduce( + (templateId, monomer) => + templateId + '_' + getMonomerUniqueKey(monomer.monomerItem), + '', + ); } else { templateId = monomer.monomerItem.props.id ||