Fix register mistake at getting baseurl from opts