diff --git a/account_manager.py b/account_manager.py
index 5f619a32030aa6eb17aa36d205476e9b421387c9..5b1f91cb58839bdb81050538c8deae4bbc5d1106 100755
--- a/account_manager.py
+++ b/account_manager.py
@@ -37,9 +37,9 @@ callback_queue = rc_rmq.bind_queue(exclusive=True)
 msg = {}
 
 if state == 'blocked' or state == 'certification':
-    action = lock
+    action = "lock"
 elif state == 'ok':
-    action = unlock
+    action = "unlock"
 else:
     print("Invalid state provided. Check the help menu.")