diff --git a/MuonSpectrometer/MuonGeoModel/src/MuonDetectorCondAlg.cxx b/MuonSpectrometer/MuonGeoModel/src/MuonDetectorCondAlg.cxx
index 01963b5b7e8ecb6f6fe8f9622cbd56df7c04717c..9cf2b8ed249ea20bbc1672255c2e3c2d6ef5fcb1 100644
--- a/MuonSpectrometer/MuonGeoModel/src/MuonDetectorCondAlg.cxx
+++ b/MuonSpectrometer/MuonGeoModel/src/MuonDetectorCondAlg.cxx
@@ -177,7 +177,8 @@ StatusCode MuonDetectorCondAlg::copyInertMaterial(MuonGM::MuonDetectorManager& d
         if (vname.find("Station") != std::string::npos) continue;
         /// All operations are atomic. So it's safe to cast constness away
         GeoVPhysVol* physVol ATLAS_THREAD_SAFE = const_cast<GeoVPhysVol*>(worldNode.operator->()) ;
-        ATH_MSG_DEBUG("Volume in the static world "<<vname<<" "<<typeid(*worldNode).name()
+        const GeoVPhysVol& pvConstLink = *worldNode;
+        ATH_MSG_DEBUG("Volume in the static world "<<vname<<" "<<typeid(pvConstLink).name()
                         <<"children: "<<worldNode->getNChildNodes()
                         <<" getDefX(): "<<Amg::toString(worldNode->getDefX())
                         <<" getX(): "<<Amg::toString(worldNode->getX())