Fix icons disappearing

Fix an bug when Enable -> Disable -> Enable.