diff --git a/MuonSpectrometer/MuonDetDescr/MuonRegionSelector/src/MM_RegionSelectorTable.cxx b/MuonSpectrometer/MuonDetDescr/MuonRegionSelector/src/MM_RegionSelectorTable.cxx
index ed60da6de9229e732a698db7a7625da637ad886d..ba23a90407ca732979fbda4072dc690d326ef051 100644
--- a/MuonSpectrometer/MuonDetDescr/MuonRegionSelector/src/MM_RegionSelectorTable.cxx
+++ b/MuonSpectrometer/MuonDetDescr/MuonRegionSelector/src/MM_RegionSelectorTable.cxx
@@ -19,9 +19,6 @@ Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
 #include <fstream>
 #include <string>
 
-using namespace std;
-
-
 #include "RegSelLUT/StoreGateIDRS_ClassDEF.h" 
 
 #include "RegSelLUT/RegSelModule.h" 
@@ -47,6 +44,7 @@ using namespace std;
 #include <fstream>
 
 
+using namespace std;
 
 
 
diff --git a/MuonSpectrometer/MuonDetDescr/MuonRegionSelector/src/sTGC_RegionSelectorTable.cxx b/MuonSpectrometer/MuonDetDescr/MuonRegionSelector/src/sTGC_RegionSelectorTable.cxx
index 433304a3d76aac8305724baa78c3beb057b7a3cf..54ddf14b0d96b536b4ef5d76e0fac0553dc91c79 100644
--- a/MuonSpectrometer/MuonDetDescr/MuonRegionSelector/src/sTGC_RegionSelectorTable.cxx
+++ b/MuonSpectrometer/MuonDetDescr/MuonRegionSelector/src/sTGC_RegionSelectorTable.cxx
@@ -19,9 +19,6 @@ Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
 #include <fstream>
 #include <string>
 
-using namespace std;
-
-
 #include "RegSelLUT/StoreGateIDRS_ClassDEF.h" 
 
 #include "RegSelLUT/RegSelModule.h" 
@@ -47,6 +44,8 @@ using namespace std;
 #include <fstream>
 
 
+using namespace std;
+