Fixed some bugs in IE