fix ie8 not updating when switches toggle and incorrect intital state