Patch to work with IE9