Fixed bugs in IE8