Fix window open url issue