diff --git a/Post/PViewDataGModel.cpp b/Post/PViewDataGModel.cpp
index baf02f69d58fb12a33d707b66d5a2bfb298b55cf..3c23991b7f41397cd59331796167f8cceea46730 100644
--- a/Post/PViewDataGModel.cpp
+++ b/Post/PViewDataGModel.cpp
@@ -179,11 +179,11 @@ bool PViewDataGModel::finalize(bool computeMinMax, const std::string &interpolat
               if(_type == ElementData){
                 // data is constant per element: force the interpolation matrix
                 fullMatrix<double> coef(1, 1);
-                coef(0, 0) = 1.0;
-                fullMatrix<double> mono(3, 1);
-                mono(0, 0) = 0;
-                mono(0, 1) = 0;
-                mono(0, 2) = 0;
+                coef(0, 0) = 1.;
+                fullMatrix<double> mono(1, 3);
+                mono(0, 0) = 0.;
+                mono(0, 1) = 0.;
+                mono(0, 2) = 0.;
                 setInterpolationMatrices(types[i], coef, mono,
                                          fs->coefficients, fs->monomials);
               }