Fix open url method