FamilyType.Duplicate: duplicating wrong family

hi all,

so this is a little frustrating and funny at the same time. I have created a model in Revit with dynabridge package. for that I have created multiple adaptive families and wanted to duplicate the types of each family. I used FamilyType.Duplicate from clockwork.

everything works perfectly, only the problem is that, the script is not duplicating the family I want but the other. I don’t understand the problem as I am new to this and I am not a programmer also.

Please help!!!

p.s. the family I want is LFLG, and the duplicated family is LWEB.

I tried the same script in another file and it worked perfectly. I don’t know what was the problem in the last one, but the problem is solved