diff --git a/unit_tests/fdt/dtifit/feedsRun b/unit_tests/fdt/dtifit/feedsRun
index 0ba3f77e04abd4a99c5d390d60386a141ef7c8d0..632abe47ee7589444fd6681b3177067fea607857 100755
--- a/unit_tests/fdt/dtifit/feedsRun
+++ b/unit_tests/fdt/dtifit/feedsRun
@@ -11,7 +11,7 @@ import numpy as np
 from numpy import testing
 import nibabel as nib
 
-OUTDIR = sys.argv[0]
+OUTDIR = sys.argv[1]
 
 
 def gen_data():