diff --git a/src/nf_modules/emase-zero/main.nf b/src/nf_modules/emase-zero/main.nf
index 12ebe5ed5547950f4964c0adfcc0c96852249791..fac633c29b8cf7c5a179f75d1678b050ba4004e3 100644
--- a/src/nf_modules/emase-zero/main.nf
+++ b/src/nf_modules/emase-zero/main.nf
@@ -17,8 +17,8 @@ workflow count {
   main:
     g2tr(gtf)
     fasta_to_transcripts_lengths(fasta)
-    bam2ec(bam_idx, fasta_to_transcripts_lengths.out.tsv)
-    emase(bam2ec.out.bin, fasta, bam2ec.out.tsv, g2tr.out.g2t)
+    bam2ec(bam_idx, fasta_to_transcripts_lengths.out.tsv.collect())
+    emase(bam2ec.out.bin, fasta.collect(), bam2ec.out.tsv, g2tr.out.g2t.collect())
 
   emit:
     count = emase.out.count