diff --git a/video_prediction_tools/JSC_scripts/data_extraction_era5_template.sh b/video_prediction_tools/JSC_scripts/data_extraction_era5_template.sh
index f856eb55e47eb89fa9dbdba96e78dbe050ecdfab..ec226b48f0248eb5df8792102c1f8de2d3817b39 100644
--- a/video_prediction_tools/JSC_scripts/data_extraction_era5_template.sh
+++ b/video_prediction_tools/JSC_scripts/data_extraction_era5_template.sh
@@ -27,9 +27,9 @@ VIRT_ENV_NAME="my_venv"
 source ../env_setup/modules_preprocess+extract.sh
 # Activate virtual environment if needed (and possible)
 if [ -z ${VIRTUAL_ENV} ]; then
-   if [[ -f ../${VIRT_ENV_NAME}/bin/activate ]]; then
+   if [[ -f ../virtual_envs/${VIRT_ENV_NAME}/bin/activate ]]; then
       echo "Activating virtual environment..."
-      source ../${VIRT_ENV_NAME}/bin/activate
+      source ../virtual_envs/${VIRT_ENV_NAME}/bin/activate
    else 
       echo "ERROR: Requested virtual environment ${VIRT_ENV_NAME} not found..."
       exit 1