diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py
index f3ca0a88964886019cafe97804e8af53076b6699..64545f2b1b6e5625f2d18001a6a94cab8ed79c58 100644
--- a/modules/util/viirs_l1b_l2.py
+++ b/modules/util/viirs_l1b_l2.py
@@ -94,7 +94,7 @@ def run_all(directory, out_directory):
                 #     print('weirdness: ', data_f)
                 #     continue
 
-                if len(data_tiles):
+                if len(data_tiles) == 0:
                     continue
 
                 num = len(data_tiles)