diff --git a/scripts/ztplot.py b/scripts/ztplot.py
index 24aca0f4509423c731502b964334c6b32c8a563a..719065bcaf7a2f43f1eca913bab846cfd0c7093e 100755
--- a/scripts/ztplot.py
+++ b/scripts/ztplot.py
@@ -195,7 +195,7 @@ class ZTPlot(kp.Module):
             trig
             for trig, trig_check in (("MX", is_mxshower), ("3DM", is_3dmuon),
                                      ("3DS", is_3dshower))
-            if trig_check(event_info.trigger_mask[0])
+            if trig_check(int(event_info.trigger_mask[0]))
         ])
 
         plt.suptitle(