diff --git a/dhp-workflows/dhp-stats-hist-snaps/src/main/resources/eu/dnetlib/dhp/oa/graph/stats-hist-snaps/oozie_app/finalizeImpalaCluster.sh b/dhp-workflows/dhp-stats-hist-snaps/src/main/resources/eu/dnetlib/dhp/oa/graph/stats-hist-snaps/oozie_app/finalizeImpalaCluster.sh
index e2277083d..d780f103b 100644
--- a/dhp-workflows/dhp-stats-hist-snaps/src/main/resources/eu/dnetlib/dhp/oa/graph/stats-hist-snaps/oozie_app/finalizeImpalaCluster.sh
+++ b/dhp-workflows/dhp-stats-hist-snaps/src/main/resources/eu/dnetlib/dhp/oa/graph/stats-hist-snaps/oozie_app/finalizeImpalaCluster.sh
@@ -9,10 +9,8 @@ fi
SOURCE=$1
PRODUCTION=$2
SHADOW=$3
-MONITOR=$4
-MONITOR_PROD=$5
-MONITOR_IRISH_PROD=$6
-MONITOR_IRISH=$7
+MONITOR_PROD=$4
+MONITOR_IRISH_PROD=$5
echo ${SOURCE}
diff --git a/dhp-workflows/dhp-stats-hist-snaps/src/main/resources/eu/dnetlib/dhp/oa/graph/stats-hist-snaps/oozie_app/workflow.xml b/dhp-workflows/dhp-stats-hist-snaps/src/main/resources/eu/dnetlib/dhp/oa/graph/stats-hist-snaps/oozie_app/workflow.xml
index 3245e0859..8846fcdd7 100644
--- a/dhp-workflows/dhp-stats-hist-snaps/src/main/resources/eu/dnetlib/dhp/oa/graph/stats-hist-snaps/oozie_app/workflow.xml
+++ b/dhp-workflows/dhp-stats-hist-snaps/src/main/resources/eu/dnetlib/dhp/oa/graph/stats-hist-snaps/oozie_app/workflow.xml
@@ -146,9 +146,9 @@
finalizeImpalaCluster.sh
${hist_db_name}
${hist_db_prod_name}
- ${monitor_db_name}
- ${monitor_db_name}
- ${monitor_irish_db_name}
+ ${hist_db_shadow_name}
+ ${monitor_db_prod_name}
+ ${monitor_irish_db_prod_name}
finalizeImpalaCluster.sh