Fixed bugs in IE