diff --git a/src/RNAseq_XGR.nf b/src/RNAseq_XGR.nf
index 4bae42ddb206897aae53c6b16c3d39361e83c722..ab95739a81552b3418b3d0ad7e28763bfcc93ccf 100644
--- a/src/RNAseq_XGR.nf
+++ b/src/RNAseq_XGR.nf
@@ -150,7 +150,7 @@ workflow {
   else {
     idx_genome = "${params.idx}"
     Channel
-      .fromPath( idx_genome )
+      .of( idx_genome )
       .set { genome_indexed_input }
     mapping_withindex(genome_indexed_input.collect(), fastp.out.fastq)
     htseq_count(mapping_withindex.out.bam, gtf_file)