Shim to support IE8.