bug fix. Error occurs when switching the editor in IE8. bugid: 112354