Fixed bug when saving icon