Fix issue when opening a new window from a file on IE