diff --git a/src/nf_modules/kb/main.nf b/src/nf_modules/kb/main.nf
index 0dcc470d39832bc394cad20c9b1aa5e2c2ac94fc..d174b19c09304156ef1268568f17f5ed25da5548 100644
--- a/src/nf_modules/kb/main.nf
+++ b/src/nf_modules/kb/main.nf
@@ -101,13 +101,13 @@ workflow count {
     .set{ whitelist_optional }
   switch(params.kb_protocol) {
     case "marsseq":
-      split(fastq, config.collect())
-      kb_marseq(index.collect(), split.out.fastq.view(), transcript_to_gene, whitelist_optional)
+      split(fastq, config)
+      kb_marseq(index, split.out.fastq.view(), transcript_to_gene, whitelist_optional)
       kb_marseq.out.counts.set{res_counts}
       kb_marseq.out.report.set{res_report}
     break;
     default:
-      kb_default(index.collect(), fastq, transcript_to_gene, whitelist_optional)
+      kb_default(index, fastq, transcript_to_gene, whitelist_optional)
       kb_default.out.counts.set{res_counts}
       kb_default.out.report.set{res_report}
     break;
@@ -194,7 +194,7 @@ process kb_marseq {
   }
   def whitelist_param = ""
   if (whitelist_id != "NO WHITELIST"){
-    whitelist_param = "-w ${white_list}"
+    whitelist_param = "-w ${whitelist}"
   }
 
   if (reads.size() == 2)