diff --git a/scripts/Infrastructure/Template.py b/scripts/Infrastructure/Template.py
index 2fc54618296773c2ac21b257f2e21e2966789e6b..69429c4610d71de5a3fb5da76ce9fd8b095af81c 100644
--- a/scripts/Infrastructure/Template.py
+++ b/scripts/Infrastructure/Template.py
@@ -294,7 +294,7 @@ class TemplateManager:
         assert self._descr_short != ""
         return self._descr_short
 
-    def set_cad_deadlock(self, can_deadlock=True):
+    def set_can_deadlock(self, can_deadlock=True):
         self._can_deadlock = can_deadlock
 
     def get_instruction(self, identifier: str = None, return_list=False, rank_excuting: int | str = None,
diff --git a/scripts/errors/pt2pt/InvalidComm.py b/scripts/errors/pt2pt/InvalidComm.py
index 85dfc995c55a5898087d199afd862593bab86b32..58aeecb3dbd791bd213d347f87b20020b068ff2a 100644
--- a/scripts/errors/pt2pt/InvalidComm.py
+++ b/scripts/errors/pt2pt/InvalidComm.py
@@ -74,7 +74,7 @@ class InvalidCommErrorP2P(ErrorGenerator):
 
                 tm = get_invalid_param_p2p_case("comm", comm_to_use, check_recv, send_func, recv_func)
 
-                tm.set_cad_deadlock()# deadlock if msg is send one one comm and not received on the other comm
+                tm.set_can_deadlock()# deadlock if msg is send one one comm and not received on the other comm
                 # deadlock can be considered  to occur even if comm=NULL as send/receive will not be matched
 
                 error_string = "ParamMatching"