diff --git a/Reconstruction/Tracking/src/Clupatra/TrackingHelper.h b/Reconstruction/Tracking/src/Clupatra/TrackingHelper.h
index 0d3cec43f6fecb839b700f4f2159b0d916e64084..2a16aa8250daccc87c7cd320ea18d90a4e8ed7b1 100644
--- a/Reconstruction/Tracking/src/Clupatra/TrackingHelper.h
+++ b/Reconstruction/Tracking/src/Clupatra/TrackingHelper.h
@@ -20,7 +20,7 @@ inline bool hasTrackStateAt(edm4hep::ConstTrack track, int location) {
 inline edm4hep::TrackState getTrackStateAt(edm4hep::ConstTrack track, int location) {
     for (auto it = track.trackStates_begin(); it != track.trackStates_end(); it++) {
         if (it->location == location) {
-            *it;
+            return *it;
         }
     }
     return edm4hep::TrackState();