fix for changing icon when icon is hidden