diff --git a/km3buu/output.py b/km3buu/output.py
index 06140a036c9e8c7d477ce777cff10eeb9b4fb07a..4d741b1c1579048351e61242a7ea2df94b2d24df 100644
--- a/km3buu/output.py
+++ b/km3buu/output.py
@@ -707,7 +707,7 @@ def write_detector_file(gibuu_output,
         if tau_secondaries is not None:
             event_tau_sec = tau_secondaries[mc_event_id]
             add_particles(event_tau_sec, vtx_pos, R, mc_trk_id, timestamp,
-                          PARTICLE_MC_STATUS["StableFinalState"])
+                          PARTICLE_MC_STATUS["TRK_ST_FINALSTATE"])
             mc_trk_id += len(event_tau_sec.E)
         else:
             lep_out_trk = ROOT.Trk()