diff --git a/rna-seq.nf b/rna-seq.nf
index ea8c468adadaa650613f61e3b19342ee87abeb73..63133f4436431b6a9516222f4c1524dc6fad6a98 100644
--- a/rna-seq.nf
+++ b/rna-seq.nf
@@ -266,7 +266,7 @@ process getData {
     echo -e "LOG: unzipped" >> ${repRID}.getData.log
 
     # bag fetch fastq's only and rename by repRID
-    if [ "${params.endsForce}" == "" ]
+    if [ "${params.fastqsForce}" == "" ]
     then
       echo -e "LOG: fetching replicate bdbag" >> ${repRID}.getData.log
       fastqCount=\$(sh ${script_bdbagFetch} \${replicate::-13} ${repRID})