diff --git a/src/nf_modules/kb/main.nf b/src/nf_modules/kb/main.nf
index 3668b7b3b588902bab5f05ef9819206ae418bfe9..a6cbfa759925b1bdff0abde20f1942ca40a22b7a 100644
--- a/src/nf_modules/kb/main.nf
+++ b/src/nf_modules/kb/main.nf
@@ -88,7 +88,7 @@ workflow count {
     .set{ whitelist_optional }
   switch(params.kb_protocol) {
     case "marsseq":
-      split(fastq, config)
+      split(fastq, config.collect())
       kb_marseq(index.collect(), split.out.fastq, transcript_to_gene.collect(), whitelist_optional.collect())
       kb_marseq.out.counts.set{res_counts}
       kb_marseq.out.report.set{res_report}
@@ -280,7 +280,7 @@ workflow count_velocity {
     .set{ whitelist_optional }
   switch(params.kb_protocol) {
     case "marsseq":
-      split(fastq, config)
+      split(fastq, config.collect())
       velocity_marseq(index.collect(), split.out.fastq, transcript_to_gene.collect(), whitelist_optional.collect())
       velocity_marseq.out.counts.set{res_counts}
       velocity_marseq.out.report.set{res_report}