diff --git a/Geo/MHexahedron.h b/Geo/MHexahedron.h
index 4c0d7df753296119bc6e4e2b60506cca7abecbbf..a5cebba92060376acae3fa5eb964e93334393271 100644
--- a/Geo/MHexahedron.h
+++ b/Geo/MHexahedron.h
@@ -232,7 +232,7 @@ class MHexahedron20 : public MHexahedron {
                                 9, 10, 12, 14, 15, 16, 18, 19, 17};
     return getVertex(map[num]);
   }
-  virtual MVertex *getVertexINP(int num){ return getVertexBDF(); }
+  virtual MVertex *getVertexINP(int num){ return getVertexBDF(num); }
   virtual MVertex *getVertexDIFF(int num)
   {
     static const int map[20] = {2, 3, 7, 6, 0, 1, 5, 4, 9, 18, 12,
diff --git a/Geo/MPrism.h b/Geo/MPrism.h
index 7e7ec8545d064defea8861bfdea26f47eb37d5f0..e4767906c5b1f5b0d6fc23a5ad40f9bc1366fb13 100644
--- a/Geo/MPrism.h
+++ b/Geo/MPrism.h
@@ -233,7 +233,7 @@ class MPrism15 : public MPrism {
     static const int map[15] = {0, 1, 2, 3, 4, 5, 6, 9, 7, 8, 10, 11, 12, 14, 13};
     return getVertex(map[num]);
   }
-  virtual MVertex *getVertexINP(int num){ return getVertexBDF(); }
+  virtual MVertex *getVertexINP(int num){ return getVertexBDF(num); }
   virtual int getNumEdgeVertices() const { return 9; }
   virtual int getNumEdgesRep(){ return 18; }
   virtual void getEdgeRep(int num, double *x, double *y, double *z, SVector3 *n)