diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index e985b5f26c523fb971e28c6bd174c96f7ec54a3b..8f9e05475a43c467d6a896e25eaae4e2df56a8e8 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -2069,7 +2069,7 @@ def create_amv_to_aeolus_match_file(aeolus_files_dir, amv_files_dir, outfile=Non
     m_d = match_amvs_to_aeolus_fast(a_d, amv_files_dir, amv_source, band, amv_files)
 
     if outfile is not None:
-        create_file_new(outfile, m_d, amv_files)
+        create_file_new(m_d, outfile, amv_files)
 
 
 # match_file: pathname for the product file