Fix bug for IE8