diff --git a/bin/foamJob b/bin/foamJob
index 4eda404..87c4392 100755
--- a/bin/foamJob
+++ b/bin/foamJob
@@ -218,10 +218,10 @@ then
     if [ "$screenOpt" = true ]
     then
         echo "Executing: $mpirun $mpiopts $APPLICATION $@ -parallel | tee log"
-        $mpirun $mpiopts $APPLICATION $@ -parallel | tee log
+        $mpirun $mpiopts $APPLICATION "$@" -parallel | tee log
     else
         echo "Executing: $mpirun $mpiopts $APPLICATION $@ -parallel > log 2>&1"
-        $mpirun $mpiopts $APPLICATION $@ -parallel > log 2>&1 &
+        $mpirun $mpiopts $APPLICATION "$@" -parallel > log 2>&1 &
     fi
 
 else
@@ -231,11 +231,11 @@ else
     if [ "$screenOpt" = true ]
     then
         echo "Executing: $APPLICATION $@ | tee log &"
-        $APPLICATION $@ | tee log &
+        $APPLICATION "$@" | tee log &
         wait $!
     else
         echo "Executing: $APPLICATION $@ > log 2>&1 &"
-        $APPLICATION $@ > log 2>&1 &
+        $APPLICATION "$@" > log 2>&1 &
     fi
 fi
 
