diff --git a/src/nf_modules/ucsc/main.nf b/src/nf_modules/ucsc/main.nf
index 7ee4fd525956399b89d5ddd445e44897f95c0c18..6ce54f0d7684d830f1276a4d998611f40cb09e76 100644
--- a/src/nf_modules/ucsc/main.nf
+++ b/src/nf_modules/ucsc/main.nf
@@ -37,12 +37,12 @@ sort -T ./ -k1,1 -k2,2n ${bg} > \
 
 params.wig_to_bedgraph = ""
 params.wig_to_bedgraph_out = ""
-process bigwig_to_wig {
+process wig_to_bedgraph {
   container = "${container_url}"
   label "big_mem_mono_cpus"
   tag "${file_id}"
-  if (params.bigwig_to_wig_out != "") {
-    publishDir "results/${params.bigwig_to_wig_out}", mode: 'copy'
+  if (params.wig_to_bedgraph_out != "") {
+    publishDir "results/${params.wig_to_bedgraph_out}", mode: 'copy'
   }
 
   input: