IE8 and IE9 fixes