Fixes some bugs in IE9.