diff --git a/src/Solver/Mage.py b/src/Solver/Mage.py
index 564a809dc114328a8e6f20ce5e5e19be690abc8c..cc18fb2cd08a372e13403ad2a4707c6370c4703e 100644
--- a/src/Solver/Mage.py
+++ b/src/Solver/Mage.py
@@ -148,7 +148,7 @@ class Mage(CommandLineSolver):
         )
 
         for edge in edges:
-            name = f"Reach_{edge.id}"
+            name = f"Reach_{edge.id + 1:>3}".replace(" ", "0")
 
             with mage_file_open(
                     os.path.join(repertory, "net", f"{name}.ST"),
@@ -817,11 +817,8 @@ class Mage8(Mage):
             )
 
             for e in edges:
-                name = e.name.replace(" ", "_")
-                if e._name == "":
-                    name = f"Reach_{e.id}"
-
-                id = f"Bief_{e.id+1}"
+                name = f"Reach_{e.id + 1:>3}".replace(" ", "0")
+                id = name
 
                 n1 = f"{e.node1.id:3}".replace(" ", "x")
                 n2 = f"{e.node2.id:3}".replace(" ", "x")