diff --git a/src/nf_modules/ucsc/main.nf b/src/nf_modules/ucsc/main.nf
index c3b5ee05a229a9b1466b213f09ae644c30c41d7c..7d77a075f198303fe24497bde5b5224a9395b7eb 100644
--- a/src/nf_modules/ucsc/main.nf
+++ b/src/nf_modules/ucsc/main.nf
@@ -71,7 +71,7 @@ process wig2_to_bedgraph2 {
   tuple val(file_id), path(wig_a), path(wig_b)
 
   output:
-  tuple val(file_id), path("${wig_a.simpleName}.wig"), path("${wig_b.simpleName}.wig"), emit: wig
+  tuple val(file_id), path("${wig_a.simpleName}.bg"), path("${wig_b.simpleName}.bg"), emit: bedgraph
 
   script:
 """