Fix for running under polyfill.