Fixed a number of horrible IE8 bugs