Tweaked IE8 compatibility