Fix issue with IE SecurityError