fix #1883: resize icon on initialization