Fixed bugs with open url.