Improved compatibility with IE