Made it work in IE9