diff --git a/core/detectors/trd/CbmTrdParSetGas.cxx b/core/detectors/trd/CbmTrdParSetGas.cxx
index c268b8743282e540afcad45d061ee5a97c48a1b7..f54fc2f3d6c751e326381b0b909e0e4fcb0a779e 100644
--- a/core/detectors/trd/CbmTrdParSetGas.cxx
+++ b/core/detectors/trd/CbmTrdParSetGas.cxx
@@ -101,8 +101,11 @@ void CbmTrdParSetGas::putParams(FairParamList* l)
   }
   CbmTrdParModGas* mod = (CbmTrdParModGas*) fModuleMap[moduleId[0]];
 
+
+  TString repopid(mod->GetFileName().Data());
+
   l->add("RepoDrift", "parameters/trd/CbmTrdDriftMap.root");
-  l->add("RepoPid", mod->GetFileName().Data());
+  l->add("RepoPid", repopid);
   l->add("Gas", Form("Xe_%d", Int_t(1.e2 * mod->GetNobleGas())));
   l->add("NrOfModules", fNrOfModules);
   l->add("ModuleIdArray", moduleId);