diff --git a/lofar-cwl/steps/LoSoTo.Plot.cwl b/lofar-cwl/steps/LoSoTo.Plot.cwl
index 2e806a833a0eeaa9d80a115c1af68c82d8c25b0e..55a5bb2912995a5e7cf8147665fb411eb960ec6f 100644
--- a/lofar-cwl/steps/LoSoTo.Plot.cwl
+++ b/lofar-cwl/steps/LoSoTo.Plot.cwl
@@ -26,7 +26,7 @@ requirements:
 
           INPUT_H5PARM=$(inputs.input_h5parm.basename)
           DO_PLOTS=$(inputs.execute)
-          if [ "$DO_PLOT" = "true" ]; then
+          if [ "$DO_PLOTS" = "true" ]; then
             losoto --verbose $INPUT_H5PARM parset.config
           else
             echo Skipped plotting 3rd order tec solutions