diff --git a/examples/old_symbolics/dagrt-fusion.py b/examples/old_symbolics/dagrt-fusion.py
index c431e21f536fcf64a0a8796cd61cc88c38e84ba6..6ba48031ec0607955717c89e2a8b2e2c3daf5a33 100755
--- a/examples/old_symbolics/dagrt-fusion.py
+++ b/examples/old_symbolics/dagrt-fusion.py
@@ -243,7 +243,7 @@ def isolate_function_calls_in_phase(phase, stmt_id_gen, var_name_gen):
             stmt_id_gen=stmt_id_gen,
             var_name_gen=var_name_gen)
 
-    for stmt in sorted(phase.statements, key=lambda stmt: stmt.id):
+    for stmt in sorted(phase.statements, key=lambda stmt_: stmt_.id):
         new_deps = []
 
         from dagrt.language import Assign