fix crash when setting icons with multiple sizes