diff --git a/modules/icing/util.py b/modules/icing/util.py
index 9c8af1e5d38fd9adb9aa58b4178ff353f9f292be..5550385a218e02d71a3726cc15327f7a7a8456ea 100644
--- a/modules/icing/util.py
+++ b/modules/icing/util.py
@@ -181,9 +181,11 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
 
         if (day_night == 'AUTO' or day_night == 'NIGHT') and num_nght_tiles > 0:
             model_path = night_model_path
+
+            mode = 'NIGHT'
             if use_dnb and lunar_illuminated:
                 model_path = day_model_path
-                day = 'DAY'
+                mode = 'DAY'
                 nght_train_params = train_params_dnb
 
             nght_data_dct = {name: [] for name in nght_train_params}
@@ -195,7 +197,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
                 nght_grd_dct[ds_name] = np.stack(nght_data_dct[ds_name])
 
             preds_nght_dct, probs_nght_dct = model_module.run_evaluate_static(nght_grd_dct, num_nght_tiles, model_path,
-                                                                              day_night=day, l1b_or_l2=l1b_andor_l2,
+                                                                              day_night=mode, l1b_or_l2=l1b_andor_l2,
                                                                               prob_thresh=prob_thresh,
                                                                               use_flight_altitude=use_flight_altitude,
                                                                               flight_levels=flight_levels)