diff --git a/maskdyads b/maskdyads
index 3534f70a6b498685e8bccb806d50ea1de3930e6c..c03ca48986dd6d54c11ef83155e200e6f395f7e4 100755
--- a/maskdyads
+++ b/maskdyads
@@ -15,7 +15,7 @@ Usage() {
 d=`$FSLDIR/bin/remove_ext $1`
 f=$2
 t=0.05
-if [ "$3" != "" ]
+if [ "$3" != "" ]; then
     t=$3
 fi