fixed a bug in saving charms