fix styleswitcher in chrome