fix for IE8 and IE9 with Document Mode