diff --git a/src/ShortestPath/Transit/TransitAlgorithmState.h b/src/ShortestPath/Transit/TransitAlgorithmState.h
index 0b44eee20e627ac39ed6216da29db82b6e129843..bd06b3230912017ac4da10d6e1406e6fdabfb788 100644
--- a/src/ShortestPath/Transit/TransitAlgorithmState.h
+++ b/src/ShortestPath/Transit/TransitAlgorithmState.h
@@ -143,6 +143,7 @@ public:
         _instant = baseState.getInstant();
         _passageIndex = baseState.getPassageIndex();
         //Copy old connections
+        _connections.clear(); //TODO: see with HT if there's a better way to do this for an assignment operator
         for(auto& lineStop : baseState.getConnections()) {
             _connections.emplace_back(lineStop);
         }