IE8 fix

Not as clean but now IE8 is working