diff --git a/correct_and_average b/correct_and_average
index ffe6db59ac2a8dab2e80f3a88b5bece21d020467..1891b78d1c98d6142414cf39f40741acc80f975f 100755
--- a/correct_and_average
+++ b/correct_and_average
@@ -58,7 +58,7 @@ while [ ${avg} -le ${numavgs} ]; do
     	scan=`expr $scan + 1`;
     done
     avwmerge -t ${$}avg_${avg}_all `imglob -oneperimage ${$}avg_${avg}_scan_*`
-    add4d data  ${$}avg_${avg}_all data;
+    avwmaths data  -add ${$}avg_${avg}_all data;
     avg=`expr $avg + 1`;
     
 done