diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf
index 0ee3b543cd636ed308df8250334195a858171b5c..748536dea6472df8b0e08d070052249a80f1c1d1 100644
--- a/workflow/rna-seq.nf
+++ b/workflow/rna-seq.nf
@@ -144,7 +144,7 @@ process getData {
     
     # bagit fetch fastq's only and rename by repRID
     echo -e "LOG: fetching replicate bdbag" >> ${repRID}.getData.log
-    sh ${script_bdbagFetch} ${repRID} ${repRID}
+    sh ${script_bdbagFetch} \${replicate} ${repRID}
     echo -e "LOG: fetched" >> ${repRID}.getData.log
     """
 }