diff --git a/execution/run_uc2.sh b/execution/run_uc2.sh
index a68cefb060305d37e3e41dbf7adffb3d49cce90e..57cf7df7ec3a8d702d3731961b963cf9288cda8a 100755
--- a/execution/run_uc2.sh
+++ b/execution/run_uc2.sh
@@ -54,7 +54,8 @@ python lag_analysis.py $EXP_ID uc2 $DIM_VALUE $INSTANCES $EXECUTION_MINUTES
 deactivate
 
 # Stop wl and app
-kubectl delete -f uc2-workload-generator/deployment.yaml
+#sed "s/{{INSTANCES}}/1/g" uc1-workload-generator/deployment.yaml | kubectl delete -f -
+echo "$WORKLOAD_GENERATOR_YAML" | kubectl delete -f -
 kubectl delete -f uc2-application/aggregation-service.yaml
 kubectl delete -f uc2-application/jmx-configmap.yaml
 kubectl delete -f uc2-application/service-monitor.yaml
diff --git a/execution/run_uc4.sh b/execution/run_uc4.sh
index 79bec30817ecbc712bc97eced687f3872db1413f..b206928f2684f95f557e3a768d125d310fe34ce2 100755
--- a/execution/run_uc4.sh
+++ b/execution/run_uc4.sh
@@ -54,7 +54,8 @@ python lag_analysis.py $EXP_ID uc4 $DIM_VALUE $INSTANCES $EXECUTION_MINUTES
 deactivate
 
 # Stop wl and app
-kubectl delete -f uc4-workload-generator/deployment.yaml
+#sed "s/{{INSTANCES}}/1/g" uc1-workload-generator/deployment.yaml | kubectl delete -f -
+echo "$WORKLOAD_GENERATOR_YAML" | kubectl delete -f -
 kubectl delete -f uc4-application/aggregation-service.yaml
 kubectl delete -f uc4-application/jmx-configmap.yaml
 kubectl delete -f uc4-application/service-monitor.yaml