Make sure the stoolbar switch button has an icon in compiled/optimized form as well.
The former manner of adding the icon only worked in source mode.