diff --git a/MeshLib/ElementCoordinatesMappingLocal.cpp b/MeshLib/ElementCoordinatesMappingLocal.cpp
index 044d7e9ac22333a012a50897bf24e4a3637b831a..cd7c788e996903ad3d7c13400c06ec201392fbb4 100644
--- a/MeshLib/ElementCoordinatesMappingLocal.cpp
+++ b/MeshLib/ElementCoordinatesMappingLocal.cpp
@@ -28,7 +28,7 @@ void rotateToLocal(
     std::vector<MathLib::Point3d> &points)
 {
     for (auto& p : points)
-        p.setCoords((matR2local*p).getCoords());
+        p = matR2local*p;
 }
 
 /// get a rotation matrix to the global coordinates