Fixed IE8 innerHTML bug