diff --git a/GeoModelRead/src/ReadGeoModel.cpp b/GeoModelRead/src/ReadGeoModel.cpp
index f412a191976cac7ad979b2a75466a427592ad4c5..18dc6046498443fd729e865e49eb1d387b0308bf 100644
--- a/GeoModelRead/src/ReadGeoModel.cpp
+++ b/GeoModelRead/src/ReadGeoModel.cpp
@@ -1357,7 +1357,7 @@ GeoShape* ReadGeoModel::buildShape(QString shapeId)
 		return new GeoShapeUnion(shapeA, shapeB);
 	}
   //LAr custom shape
-  else if(type == "CustomShape") {
+  else if(type == "CustomShapeXXX") {
     std::string name = "";
     // get parameters from DB string
 		QStringList shapePars = parameters.split(";");