diff --git a/src/nf_modules/macs2/main.nf b/src/nf_modules/macs2/main.nf
index 558d134b53372fe66c2aaa9eea51d179b7976c33..6570b0b960ec36948c52c1d8d6b16ccf9f8fd915 100644
--- a/src/nf_modules/macs2/main.nf
+++ b/src/nf_modules/macs2/main.nf
@@ -46,9 +46,9 @@ process peak_calling_bg {
     tuple val(file_id), path(bg_ip), path(bg_control)
 
   output:
-    path "*.narrowPeak", emit: peak
-    path "*.bed", emit: summits
-    path "*_report.txt", emit: report
+    tuple val(file_id), path "*.narrowPeak", emit: peak
+    tuple val(file_id), path "*.bed", emit: summits
+    tuple val(file_id), path "*_report.txt", emit: report
 
   script:
 /* remove --nomodel option for real dataset */