From 24886c52527a578ee284a9a6b1994416f77e0aee Mon Sep 17 00:00:00 2001
From: Russel Arbore <russel.jma@gmail.com>
Date: Sun, 18 Feb 2024 16:18:46 -0600
Subject: [PATCH] Fix

---
 hercules_ir/src/schedule.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hercules_ir/src/schedule.rs b/hercules_ir/src/schedule.rs
index 57136c0c..ab1b4f51 100644
--- a/hercules_ir/src/schedule.rs
+++ b/hercules_ir/src/schedule.rs
@@ -62,7 +62,7 @@ pub fn default_plan(function: &Function, fork_join_map: &HashMap<NodeID, NodeID>
             control,
             init: _,
             reduct,
-        } = function.nodes[id.idx()]
+        } = function.nodes[chain_id.idx()]
         {
             if first_control.is_none() {
                 first_control = Some(control);
-- 
GitLab