fix icon change bug when loading