diff --git a/parse-ci.py b/parse-ci.py
index a312070f52256f8e7999136262d766078fffa79e..f22fcdb83ac698e622f1aecdb4faf5c4605919ea 100644
--- a/parse-ci.py
+++ b/parse-ci.py
@@ -171,7 +171,7 @@ def dict_to_nodes(dictionary) -> str:
         output_str = ""
         for k in sorted(dictionary.keys()):
             if isinstance(dictionary[k], dict):
-                output_str += "\n\tsubgraph cluster_" + k + "{" + "\n\t\tlabel=\"" + k +  "\"" 
+                output_str += "\n\tsubgraph cluster_" + k.replace('-', '_') + "{" + "\n\t\tlabel=\"" + k +  "\"" 
                 output_str += dict_to_nodes(dictionary[k]).replace('\n', "\n\t")
                 output_str += "\n\t}"
             else: