diff --git a/tasks.py b/tasks.py
index 5b7fa37472b1e63e986bd8a46af1ab6045b9993f..5b724f30adaa83e8e6001dcae99949b657ef61cb 100644
--- a/tasks.py
+++ b/tasks.py
@@ -20,7 +20,7 @@ def gen_f(room):
     def callback(channel, method, properties, body):
         msg = json.loads(body)
         username = msg['username']
-        queuename = msg['username']
+        queuename = msg['queuename']
 
         if msg['success']:
             print(f'Account for {username} has been created.')
@@ -40,7 +40,7 @@ def certify_gen_f(room):
     def callback(channel, method, properties, body):
         msg = json.loads(body)
         username = msg['username']
-        queuename = msg['username']
+        queuename = msg['queuename']
 
         if msg['success']:
             print(f'Account for {username} has been certified.')