diff --git a/compact/ffi_ZDC_HCAL.xml b/compact/ffi_ZDC_HCAL.xml
index 3fe5746526017f2fc3c0ffb344e24b25f4655dd6..682dbd7a988b155876fcc9fa078c6924cbd2ba21 100644
--- a/compact/ffi_ZDC_HCAL.xml
+++ b/compact/ffi_ZDC_HCAL.xml
@@ -30,7 +30,7 @@
 
   <!-- Define detector -->
   <detectors>
-    <detector id="ffi_ZDC_HCAL_ID" name="largeZDC" type="ZDC" readout="ZDCHits" vis="RedVis">
+    <detector id="ffi_ZDC_HCAL_ID" name="largeZDC" type="ffi_ZDC_HCAL" readout="ZDCHits" vis="RedVis">
       <position x="ffi_ZDC_HCAL_lt_x_pos" y="ffi_ZDC_HCAL_lt_y_pos" z="ffi_ZDC_HCAL_lt_z_pos"/>
       <dimensions x = "ffi_ZDC_HCAL_lt_length" y = "ffi_ZDC_HCAL_lt_length"/>
       <layer repeat="2">
diff --git a/src/ffi_ZDC_HCAL.cpp b/src/ffi_ZDC_HCAL.cpp
index 2332a9d18783ce1fa898edb071c676655b287050..ce3e1cae99f26797549af227f6393321b00726c2 100644
--- a/src/ffi_ZDC_HCAL.cpp
+++ b/src/ffi_ZDC_HCAL.cpp
@@ -36,7 +36,6 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) {
 	int layer_num = 1;
 	int slice_num = 1;
 	double totWidth = Layering(x_det).totalThickness();
-	totWidth += 2*13;
 	Box envelope (pixel_x/2.0, pixel_y/2.0, totWidth/2.0);
 	Volume envelopeVol(det_name+"_envelope", envelope, air); 
 	PlacedVolume pv;
@@ -95,4 +94,4 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) {
 	return det;
 }
 
-DECLARE_DETELEMENT(ZDC, createDetector)
+DECLARE_DETELEMENT(ffi_ZDC_HCAL, createDetector)