diff --git a/include/hpp/fcl/shape/geometric_shapes.h b/include/hpp/fcl/shape/geometric_shapes.h
index 776183ecce0d2ee4ece467918ae63cee4a909450..2081c19518e6273f568c960aad54977044deeb35 100644
--- a/include/hpp/fcl/shape/geometric_shapes.h
+++ b/include/hpp/fcl/shape/geometric_shapes.h
@@ -149,7 +149,7 @@ class Capsule : public ShapeBase
 public:
   Capsule(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_)
   {
-    lz = lz_
+    lz = lz_;
     HalfLength = lz_/2;
   }
 
@@ -194,7 +194,7 @@ class Cone : public ShapeBase
 public:
   Cone(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_)
   {
-    lz = lz_
+    lz = lz_;
     HalfLength = lz_/2;
   }
 
@@ -241,7 +241,7 @@ class Cylinder : public ShapeBase
 public:
   Cylinder(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_)
   {
-    lz = lz_
+    lz = lz_;
     HalfLength = lz_/2;
   }