diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats
index dca6ba2..e1940ca 100644
--- a/Jenkinsfile_stats
+++ b/Jenkinsfile_stats
@@ -13,7 +13,7 @@ node {
     stage('Copy artifacts') {
         copyArtifacts fingerprintArtifacts: true, projectName: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR')
     }
-    stage('Script') {
+    withEnv() {
          sh 'chmod u+x ./get_stats.sh'
          sh './get_stats.sh'
     }