Fixes the crash problem when adding icons. (#1)