diff --git a/modules/util/viirs_surfrad.py b/modules/util/viirs_surfrad.py
index 0f8b0b76ca4c7070dda315c23c08bfb024059089..b90b3da16febe2b8fa97e55574357d8c2c683f9c 100644
--- a/modules/util/viirs_surfrad.py
+++ b/modules/util/viirs_surfrad.py
@@ -235,7 +235,7 @@ def run(h5f, param_s, train_tiles, valid_tiles, lbl_param_s, lbl_train_tiles, lb
                 continue
             num_not_missing += 1
 
-            nda_lbl = keep_tile(group_name_i+target_param, lbl_param_s, nda_lbl)
+            nda_lbl = keep_tile(param_idx_i, nda_lbl)
             if nda_lbl is not None:
                 data_tiles.append(nda)
                 lbl_tiles.append(nda_lbl)