diff --git a/packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts b/packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts index 7ae2272cf8..8390d75c80 100644 --- a/packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts +++ b/packages/ketcher-core/src/domain/serializers/ket/ketSerializer.ts @@ -715,10 +715,15 @@ export class KetSerializer implements Serializer { if (monomer instanceof AmbiguousMonomer) { templateId = - monomer.variantMonomerItem.id || - monomer.monomers.reduce( - (templateId, monomer) => - templateId + '_' + getMonomerUniqueKey(monomer.monomerItem), + monomer.variantMonomerItem.subtype + + '_' + + monomer.variantMonomerItem.options.reduce( + (templateId, option) => + templateId + + '_' + + option.templateId + + '_' + + (option.probability || option.ratio || ''), '', ); } else {