Improved compatibility with older browser.