SMILES notation for cyclic compounds

I am using the polymer.esh file (given bellow) to make sevaral polymers. Everything was working until I tried to make polyDADMAC. From the document I made the monomer like this: @CCC1C[N+](C)(C)CC1C$.[Cl-] ($, @ and % are intentionally used instead of * here) and terminal like *C. But I am getting error saying “Found nrings != nlinks”

ITEM OPTIONS

replace true
field opls-aa
density 0.85
ntotal 1000

ITEM END

Groups

ITEM GROUPS

monomer %CCC1CN+(C)CC1C$,1,monomer:2
terminator *C,1,monomer:1,1,monomer:2

ITEM END

Clusters

ITEM CLUSTERS

poly alternate 1

ITEM END

Polymers

ITEM POLYMERS

poly
1 monomer,2,terminator,2

ITEM END