diff --git a/src/RNAseq_sen1D.nf b/src/RNAseq_sen1D.nf
index 5193ff4d5cc5deb580ce693fca297d7c30190e63..30566d9aef0a9909cbbc0968913061aaa912732c 100644
--- a/src/RNAseq_sen1D.nf
+++ b/src/RNAseq_sen1D.nf
@@ -193,6 +193,7 @@ process index_fasta {
 
   output:
     file "*.index*" into index_files
+    file "*_report.txt" into indexing_report
 
   script:
 """
@@ -224,7 +225,7 @@ process mapping_fastq {
   script:
   index_id = index[0]
   for (index_file in index) {
-    if (index_file =~ /.*\.1\.ebwt/) {
+  if (index_file =~ /.*\.1\.ebwt/ && !(index_file =~ /.*\.rev\.1\.ebwt/)) {
         index_id = ( index_file =~ /(.*)\.1\.ebwt/)[0][1]
     }
   }