fix switch in ie