diff --git a/pift.cron.inc b/pift.cron.inc
index 3bc7ee5..460e913 100644
--- a/pift.cron.inc
+++ b/pift.cron.inc
@@ -213,7 +213,7 @@ function pift_cron_queue_batch_build_files(array &$batch, array &$branches) {
     // Get any dependent branches and add them to the $branches array
     $branch_dependencies = project_dependency_get_dependencies($branch_info_result['rid'], PROJECT_DEPENDENCY_DEPENDENCY_REQUIRED);
     foreach ($branch_dependencies as $dep) {
-      $branches[$dep['rid']] = FALSE;
+      $branches[$dep['release_nid']] = FALSE;
     }
 
     // Generate link to file issue and comment if relevant.
