diff --git a/registration/connect_js.go b/registration/connect_js.go
index 59ce5b373dd9319cee3eabe1727675c3def05a85..8338fc3c6733fae3e2960b21ff02816baec549ec 100644
--- a/registration/connect_js.go
+++ b/registration/connect_js.go
@@ -9,7 +9,7 @@ const replaceWith = "registrar"
 // it is a simple pass through. For webassembly, it does not
 // return the cert
 func getConnectionInfo(regAddr, certificate string) (addr string, cert []byte, err error) {
-	addr = strings.Replace(regAddr, toReplace, replaceWith, 0)
+	addr = strings.Replace(regAddr, toReplace, replaceWith, 1)
 
 	cert = []byte(certificate)