diff --git a/rna-seq.nf b/rna-seq.nf
index 5c2c96d38390cc331a67ab580440178a172279cb..478b742f54bea916b5764b7b2387ea24e8429223 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 [ "${fastqsForce}" != "" ]
+    if [ "${params.fastqsForce}" != "" ]
     then
       echo -e "LOG: fetching replicate bdbag" >> ${repRID}.getData.log
       fastqCount=\$(sh ${script_bdbagFetch} \${replicate::-13} ${repRID})