diff --git a/tools/2d_auto_threshold/auto_threshold.xml b/tools/2d_auto_threshold/auto_threshold.xml
index c6aaf725..cd686e52 100644
--- a/tools/2d_auto_threshold/auto_threshold.xml
+++ b/tools/2d_auto_threshold/auto_threshold.xml
@@ -23,9 +23,7 @@
'$th_method.method_id'
'$th_method.block_size'
'$th_method.threshold'
- #if $invert_output:
- --invert_output
- #end if
+ $invert_output
]]>
@@ -74,7 +72,7 @@
-
+