diff --git a/commands.py b/commands.py
index 3561c215673f16dd61e8c5bf15cd88c4ec363402..9ae3bd7f722ad18aea00dff094d4e7115ba8117e 100644
--- a/commands.py
+++ b/commands.py
@@ -43,10 +43,8 @@ def start(update: Update, context: CallbackContext):
         else:
             update.effective_message.reply_text("You cannot join a wallet twice")
 
-    #     TODO. when the last one is added send mnemonics to users
-
     user.set_state(1)
-    # TODO: clear variables
+    user.set_variable({})
 
     reply_msg, reply_markup = generate_message(1)
     update.effective_message.reply_text(reply_msg, reply_markup=reply_markup)
@@ -90,8 +88,8 @@ def choose_wallet(update: Update, context: CallbackContext):
 
 
 def wallet_options(update: Update, context: CallbackContext, user: AppUser):
-    query = update.callback_query.data
-    print("We are in the wallet options: " + query)
+    wallet_name = update.callback_query.data
+    user.set_variable("wallet_name", wallet_name)
     next_state = user.next_state()
     reply_msg, reply_markup = generate_message(next_state)
     update.effective_message.reply_text(reply_msg, reply_markup=reply_markup)
@@ -146,7 +144,7 @@ def name_wallet(update: Update, context: CallbackContext, user: AppUser):
         for request in wallet_requests:
             update.effective_message.reply_text("Hi, please join this wallet as co-signer.\n"
                                                 "Wallet name= {}\n"
-                                                "https://t.me/BitcoinLibTestbot&start={}".format(variables['wallet_name'], request["token"]))
+                                                "https://t.me/BitcoinLibTestbot?start={}".format(variables['wallet_name'], request["token"]))
 
         next_state = user.next_state()
         reply_msg, reply_markup = generate_message(next_state)
diff --git a/main.py b/main.py
index fb9cbffce15655bf693fc3aa298af56911c58d3f..a57b5b093e6ac2291f2d5c30cd7990769103d613 100644
--- a/main.py
+++ b/main.py
@@ -22,6 +22,7 @@ class TelegramWrapper:
 
     def start_polling(self):
         self._updater.start_polling()
+        self._updater.idle()
 
     def connect_database(self):
         connect(True)