Fix for IE8, test will probably fail on IE8