diff --git a/examples/AlignDet/compact/compact.xml b/examples/AlignDet/compact/compact.xml
index baf4250f842ecdd52ef116451dc52836d5e0daef..60009b3a36ca7921be3a1f0024ab109b9a56b3c6 100644
--- a/examples/AlignDet/compact/compact.xml
+++ b/examples/AlignDet/compact/compact.xml
@@ -45,14 +45,14 @@
 
   <detectors>
     <comment>Boxes</comment>
-    <detector id="1" name="B1" type="BoxSegment" vis="B1_vis">
+    <detector id="1" name="B1" type="AlignmentBoxSegment" vis="B1_vis">
       <comment>Horizontal box</comment>
       <material name="Steel235"/>
       <box      x="20"   y="0.1" z="5"/>
       <position x="20"   y="10"  z="10"/>
       <rotation x="1"    y="0"   z="0"/>
     </detector>
-    <detector id="2" name="B2" type="BoxSegment" vis="B2_vis">
+    <detector id="2" name="B2" type="AlignmentBoxSegment" vis="B2_vis">
       <comment>Vertical box</comment>
       <material name="Steel235"/>
       <box      x="0.1" y="20"   z="5"/>
diff --git a/examples/AlignDet/src/BoxDetector_geo.cpp b/examples/AlignDet/src/BoxDetector_geo.cpp
index 0afc8cbb470b8557fb9fc8cebc4524cf877c93ff..de1471001e5f806386aa5cbb58003146f09d25db 100644
--- a/examples/AlignDet/src/BoxDetector_geo.cpp
+++ b/examples/AlignDet/src/BoxDetector_geo.cpp
@@ -31,4 +31,4 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, Ref_t)  {
 }
 
 // first argument is the type from the xml file
-DECLARE_DETELEMENT(BoxSegment,create_element)
+DECLARE_DETELEMENT(AlignmentBoxSegment,create_element)