diff --git a/allgo/__init__.py b/allgo/__init__.py
index 6bc26e0e6d03231d4cb02d5795da18c6dee81639..93e661867fc417a05fe35fef51804a5107f75fbc 100644
--- a/allgo/__init__.py
+++ b/allgo/__init__.py
@@ -151,7 +151,7 @@ class Init:
         # Check all methods
         # notebook, local_file, env_variable, arg_variable
         if(API_parameters['auth_method'] == 'notebook'):
-            if not 'API_token' in API_paremeters :
+            if not 'API_token' in API_parameters :
                 API_parameters['API_token'] = secrets.token_hex(16)
                 print('Notebook token created')
             elif(API_token_valid):