diff --git a/kadmos/graph/graph_data.py b/kadmos/graph/graph_data.py
index 66bac6f81b4f2d4965bb993d46b34b96a1397025..00c6a2b6a3407f2156ec5d360b576c7badaa4a1e 100644
--- a/kadmos/graph/graph_data.py
+++ b/kadmos/graph/graph_data.py
@@ -927,7 +927,7 @@ class DataGraph(KadmosGraph):
                     if feedback < min_feedback or (feedback == min_feedback and time < min_time):
                         best_order = list(neighbor_solution)
                         min_feedback = feedback
-                        min_size = time
+                        min_time = time
                         new_iteration = True
 
                     # When a better solution is found, the current iteration is stopped and a new iteration is