diff --git a/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx b/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx
index 67175200149d61cd43cb55ff51cb71c9f171f956..a67c1e24b5d98acabee57157128c759613407e4f 100644
--- a/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx
+++ b/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx
@@ -74,7 +74,7 @@ namespace FlavorTagDiscriminants {
 
     // sort the tracks by pt to ensure the vertex clustering is deterministic
     std::vector<const xAOD::TrackParticle*> sorted_tracks;
-    for (const auto& track : *tracks) { sorted_tracks.push_back(track); }
+    for (const auto track : *tracks) { sorted_tracks.push_back(track); }
     std::sort(sorted_tracks.begin(), sorted_tracks.end(), sort_tracks);
 
     // first loop - decorate origin label, just store truth vertex for now