diff --git a/DDCore/include/DD4hep/DetFactoryHelper.h b/DDCore/include/DD4hep/DetFactoryHelper.h
index 5a00102ab75c3728940fc4036a83ba2665d5dafa..66f8a37504c4a5fe987f811a253502350d1559d6 100644
--- a/DDCore/include/DD4hep/DetFactoryHelper.h
+++ b/DDCore/include/DD4hep/DetFactoryHelper.h
@@ -15,6 +15,7 @@
 
 /** Obsolete header. Better use XML/Helper.h instead !  */
 
-#include "XML/Helper.h"
+#include <XML/Helper.h>
+#include <DD4hep/Factories.h>
 
 #endif // DD4HEP_DETFACTORYHELPER_H
diff --git a/DDCore/include/XML/Helper.h b/DDCore/include/XML/Helper.h
index 813d785aaa62d925386dda299a3520f5cadb1fb9..9438557a874ec291f8e23a41a57d6abbe7eb2d24 100644
--- a/DDCore/include/XML/Helper.h
+++ b/DDCore/include/XML/Helper.h
@@ -16,7 +16,6 @@
 // Framework include files
 #include "XML/XML.h"
 #include "DD4hep/Detector.h"
-#include "DD4hep/Factories.h"
 #include "DD4hep/DD4hepUnits.h"
 
 /// Namespace for the AIDA detector description toolkit
diff --git a/DDCore/src/plugins/Compact2Objects.cpp b/DDCore/src/plugins/Compact2Objects.cpp
index 65102cba6934f824b73fc9d496b191aa3d688663..fab6267f89e7bb9432d89c400eadfea11c603e27 100644
--- a/DDCore/src/plugins/Compact2Objects.cpp
+++ b/DDCore/src/plugins/Compact2Objects.cpp
@@ -28,6 +28,7 @@
 #include <DD4hep/DD4hepUnits.h>
 #include <DD4hep/FieldTypes.h>
 #include <DD4hep/Printout.h>
+#include <DD4hep/Factories.h>
 #include <DD4hep/Plugins.h>
 #include <DD4hep/detail/SegmentationsInterna.h>
 #include <DD4hep/detail/DetectorInterna.h>