diff --git a/lofar-cwl/steps/LoSoTo.Plot.cwl b/lofar-cwl/steps/LoSoTo.Plot.cwl
index 61d9b09ac225508200ffd7faa36fe436266c2053..2e806a833a0eeaa9d80a115c1af68c82d8c25b0e 100644
--- a/lofar-cwl/steps/LoSoTo.Plot.cwl
+++ b/lofar-cwl/steps/LoSoTo.Plot.cwl
@@ -23,10 +23,10 @@ requirements:
         entry: |
           #!/bin/bash
           set -e
-          
+
           INPUT_H5PARM=$(inputs.input_h5parm.basename)
           DO_PLOTS=$(inputs.execute)
-          if [ DO_PLOT ]; then
+          if [ "$DO_PLOT" = "true" ]; then
             losoto --verbose $INPUT_H5PARM parset.config
           else
             echo Skipped plotting 3rd order tec solutions
@@ -52,7 +52,7 @@ inputs:
   - id: soltab
     type: string
     doc: "Tabs to plot"
-    
+
 
   - id: axesInPlot
     type: string[]?
@@ -153,8 +153,8 @@ outputs:
     outputBinding:
       glob: parset.config
 
-stdout: $(inputs.input_h5parm.basename)-losoto.log      
-stderr: $(inputs.input_h5parm.basename)-losoto_err.log    
+stdout: $(inputs.input_h5parm.basename)-losoto.log
+stderr: $(inputs.input_h5parm.basename)-losoto_err.log
 
 
 $namespaces:
diff --git a/lofar-cwl/steps/LoSoTo.Smooth.cwl b/lofar-cwl/steps/LoSoTo.Smooth.cwl
index 29ab625bb313fad536210876695f30673d21dd27..303a245f9924dc2c1cdf9159cbd02dfd72f26e7d 100644
--- a/lofar-cwl/steps/LoSoTo.Smooth.cwl
+++ b/lofar-cwl/steps/LoSoTo.Smooth.cwl
@@ -29,10 +29,10 @@ requirements:
         entry: |
           #!/bin/bash
           set -e
-          
+
           INPUT_H5PARM=$(inputs.input_h5parm.basename)
           DO_SMOOTH=$(inputs.execute)
-          if [ DO_SMOOTH ]; then
+          if [ "$DO_SMOOTH" = "true" ]; then
             losoto --verbose $INPUT_H5PARM parset.config
           else
             echo Skipped smoothing.