Fix various IE bugs