Fixes various bugs in IE8.