diff --git a/hnslinks.py b/hnslinks.py
index c88f774..b4f82de 100644
--- a/hnslinks.py
+++ b/hnslinks.py
@@ -189,7 +189,7 @@ def hnslinks(params, authentication):
         return {"status": "Error getting wallet address"}
     
     # Sign message hns-links
-    response = account.signMessage(wallet,domain,"hns-links")
+    response = account.signMessage(authentication,domain,"hns-links")
     if "error" in response:
         return {"status": "Error signing message"}
     return {"status": response}