Fix updating of url
Fix construction of instance