diff --git a/src/root/build-deps.tt b/src/root/build-deps.tt
index 5aa4bd1e0..157b113e6 100644
--- a/src/root/build-deps.tt
+++ b/src/root/build-deps.tt
@@ -1,5 +1,7 @@
[% PROCESS deps.tt %]
+[% global.nodeId = 10000 %]
+
[% INCLUDE renderNode node=buildTimeGraph %]
diff --git a/src/root/deps.tt b/src/root/deps.tt
index b265ff021..3ad4c05c5 100644
--- a/src/root/deps.tt
+++ b/src/root/deps.tt
@@ -1,7 +1,5 @@
[% PROCESS common.tt %]
-[% global.nodeId = 1 %]
-
[% BLOCK renderNode %]
-
[% IF done.${node.path} %]
diff --git a/src/root/runtime-deps.tt b/src/root/runtime-deps.tt
index db22b47f3..e6acbb567 100644
--- a/src/root/runtime-deps.tt
+++ b/src/root/runtime-deps.tt
@@ -1,7 +1,9 @@
[% PROCESS deps.tt %]
+[% global.nodeId = 1 %]
+
[% FOREACH node IN runtimeGraph; INCLUDE renderNode; END %]
-
\ No newline at end of file
+