Made it work in IE8