Fix some bugs in IE