diff --git a/Core/include/Acts/Geometry/TrackingVolume.hpp b/Core/include/Acts/Geometry/TrackingVolume.hpp
index dce65a69d95054b86df915fbede417e7bae303c6..9e7e55cae47c2ed2632223ae5825762597b43994 100644
--- a/Core/include/Acts/Geometry/TrackingVolume.hpp
+++ b/Core/include/Acts/Geometry/TrackingVolume.hpp
@@ -336,7 +336,7 @@ class TrackingVolume : public Volume {
   /// @param bsfNeighbor is the boudnary surface of the neighbor
   void glueTrackingVolume(const GeometryContext& gctx,
                           BoundarySurfaceFace bsfMine,
-                          const TrackingVolume* neighbor,
+                          TrackingVolume* neighbor,
                           BoundarySurfaceFace bsfNeighbor);
 
   /// Glue another tracking volume to this one
diff --git a/Core/src/Geometry/TrackingVolume.cpp b/Core/src/Geometry/TrackingVolume.cpp
index 8e28f0fe2a212f2a5b8a52225bdbc122f0d91e41..9cb607dd06237e1ba33d5c1622151695327b4409 100644
--- a/Core/src/Geometry/TrackingVolume.cpp
+++ b/Core/src/Geometry/TrackingVolume.cpp
@@ -202,7 +202,7 @@ Acts::TrackingVolume::createBoundarySurfaces()
 
 void Acts::TrackingVolume::glueTrackingVolume(
     const GeometryContext& gctx, BoundarySurfaceFace bsfMine,
-    const TrackingVolume* neighbor,
+    TrackingVolume* neighbor,
     BoundarySurfaceFace bsfNeighbor) {
   // Find the connection of the two tracking volumes: binR returns the center
   // except for cylindrical volumes