diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py
index e6eb46242fc05870a7415414af114724364f3b83..983d5f716000ac12871ca6bbc9d6986fe914aaf8 100644
--- a/modules/util/viirs_l1b_l2.py
+++ b/modules/util/viirs_l1b_l2.py
@@ -54,7 +54,7 @@ def run_all(directory):
                 l1b_h5f.close()
                 # l2_h5f.close()
 
-        if len(l1b_tiles) or len(l2_tiles) == 0:
+        if len(l1b_tiles) == 0 or len(l2_tiles) == 0:
             continue
 
         l1b_nda = np.stack(l1b_tiles)