diff --git a/DDCore/include/DDSegmentation/SegmentationUtil.h b/DDCore/include/DDSegmentation/SegmentationUtil.h
index 8785ef4ce79d27163b1a180687dd3641ff5b9606..665528b43122890d59616549d13ac85e9b38e8c6 100644
--- a/DDCore/include/DDSegmentation/SegmentationUtil.h
+++ b/DDCore/include/DDSegmentation/SegmentationUtil.h
@@ -40,7 +40,7 @@ inline double radiusFromXYZ(const Vector3D& position) {
 
 /// Calculates cosine of the polar angle theat from Cartesian coodinates
 inline double cosThetaFromXYZ(const Vector3D& position) {
-	return position.Z / radiusFromXYZ(position);
+	return position.Z / magFromXYZ(position);
 }
 
 /// calculates the polar angle theta from Cartesian coordinates