diff --git a/MeshLib/MeshEditing/FlipElements.cpp b/MeshLib/MeshEditing/FlipElements.cpp
index 828e5183849888b2538581bbddc8dec58545dc00..38e387749eaccb9ea49b228d0cc704d6e958f58a 100644
--- a/MeshLib/MeshEditing/FlipElements.cpp
+++ b/MeshLib/MeshEditing/FlipElements.cpp
@@ -56,8 +56,8 @@ std::unique_ptr<MeshLib::Mesh> createFlippedMesh(MeshLib::Mesh const& mesh)
     for (std::size_t i=0; i<n_elems; ++i)
         new_elems.push_back(createFlippedElement(*elems[i], new_nodes).release());
 
-    const MeshLib::Properties& new_props (mesh.getProperties());
-    return std::unique_ptr<MeshLib::Mesh>(new MeshLib::Mesh("FlippedElementMesh", new_nodes, new_elems, new_props));
+    return std::unique_ptr<MeshLib::Mesh>(new MeshLib::Mesh(
+        "FlippedElementMesh", new_nodes, new_elems, mesh.getProperties()));
 }
 
 } // end namespace MeshLib