diff --git a/Tr/TrackMonitors/src/TrackMonitor.cpp b/Tr/TrackMonitors/src/TrackMonitor.cpp
index ca2a48810bcb449b1fd7584dd9c94b731b32235d..7bd5e18fe6c73c4cc9d7048eb4f2a03890037ee6 100644
--- a/Tr/TrackMonitors/src/TrackMonitor.cpp
+++ b/Tr/TrackMonitors/src/TrackMonitor.cpp
@@ -309,7 +309,11 @@ private:
   mutable Gaudi::Accumulators::Histogram<1> m_trackMultiplicity{
       this, "TrackMultiplicityFine", "# tracks", {200, 0.0, 2000.}};
   mutable Gaudi::Accumulators::Histogram<1> m_type{this, "trackType", "track type", {11, -0.5, 10.5}};
-  mutable Gaudi::Accumulators::Histogram<1> m_history{this, "history", "track history", {24, -0.5, 23.5}};
+  mutable Gaudi::Accumulators::Histogram<1> m_history{
+      this,
+      "history",
+      "track history",
+      {int( LHCb::Event::Enum::Track::History::Last ), -0.5, int( LHCb::Event::Enum::Track::History::Last ) - 0.5}};
 
   mutable Gaudi::Accumulators::StatCounter<> m_NTracks{this, "#Tracks"};
 };