diff --git a/templates/event-generator/adapt_member_utils.sh b/templates/event-generator/adapt_member_utils.sh
index 03da1888c07365da125b40b268a858e3a841f67b..7811377b791ebed3c5b2332199e02b32dde866d3 100644
--- a/templates/event-generator/adapt_member_utils.sh
+++ b/templates/event-generator/adapt_member_utils.sh
@@ -139,11 +139,11 @@ with read("${ANALYSIS_FILE}") as ds, open('remap.nml', 'a') as file:
         if not "bnds" in var and not '_vertices' in var and not 'lat' in var and not 'lon' in var:
             remap_vars.append(var)
 
-   for var in remap_vars:
-       file.write('&input_field_nml\n')
-       file.write(f'inputname = "{var}"\n')
-       file.write(f'outputname = "{var}"\n')
-       file.write('/\n\n')
+    for var in remap_vars:
+        file.write('&input_field_nml\n')
+        file.write(f'inputname = "{var}"\n')
+        file.write(f'outputname = "{var}"\n')
+        file.write('/\n\n')
 END
 
   python3 extend_remap_namelist.py