fixed bug in adding charms
fixed bug in adding charms