Fix opening multiple windows on Safari