diff --git a/src/RNAseq_XGR.nf b/src/RNAseq_XGR.nf
index 1a65e2245aa586f7082142c1884eda26525f1d19..dff5575dfc057b753e7eb082a228aea274ce776d 100644
--- a/src/RNAseq_XGR.nf
+++ b/src/RNAseq_XGR.nf
@@ -146,7 +146,7 @@ workflow {
   else {
     idx_genome = "${params.idx}"
     Channel
-      .fromPath( idx_genome, type: 'dir' )
+      .of( idx_genome )
       .set { genome_indexed_input }
     mapping_withindex(genome_indexed_input.collect(), fastp.out.fastq)
     stats_bam(mapping_withindex.out.bam)
diff --git a/src/nf_modules/htseq/main.nf b/src/nf_modules/htseq/main.nf
index 51e6de1e2a5ae41ba67a0cec875650d21645f391..5405feac56f048f23d7e7ba0c5fb870148df70c1 100644
--- a/src/nf_modules/htseq/main.nf
+++ b/src/nf_modules/htseq/main.nf
@@ -31,7 +31,7 @@ process htseq_count {
     }
     input:
       tuple val(file_id), path(bam), path(bai)
-      path (gtf)
+      val(gtf)
 
     output:
       path "${file_id}.tsv", emit: counts