diff --git a/Gui/DataView/ElementTreeModel.cpp b/Gui/DataView/ElementTreeModel.cpp
index b0868e8f79b4e3d2b1bccd0a8793d4be73fd37c6..202943022933ca0d2f1669378d940163495d2629 100644
--- a/Gui/DataView/ElementTreeModel.cpp
+++ b/Gui/DataView/ElementTreeModel.cpp
@@ -141,8 +141,8 @@ void ElementTreeModel::setMesh(MeshLib::Mesh const*const mesh)
 	_rootItem->appendChild(aabb_item);
 
 	const GeoLib::AABB<MeshLib::Node> aabb (MeshInformation::getBoundingBox(mesh));
-	const MeshLib::Node min = aabb.getMinPoint();
-	const MeshLib::Node max = aabb.getMaxPoint();
+	const MeshLib::Node& min = aabb.getMinPoint();
+	const MeshLib::Node& max = aabb.getMaxPoint();
 
 	QList<QVariant> min_aabb;
 	min_aabb << "Min:" << QString::number(min[0], 'f') << QString::number(min[1], 'f') << QString::number(min[2], 'f');
@@ -154,7 +154,7 @@ void ElementTreeModel::setMesh(MeshLib::Mesh const*const mesh)
 	TreeItem* max_item = new TreeItem(max_aabb, aabb_item);
 	aabb_item->appendChild(max_item);
 
-	std::pair<unsigned, unsigned> mat_bounds (MeshInformation::getMatBounds(mesh));
+	std::pair<unsigned, unsigned> mat_bounds (MeshInformation::getValueBounds(mesh));
 	QList<QVariant> materials;
 	materials << "MaterialIDs: " << "[" + QString::number(mat_bounds.first) << QString::number(mat_bounds.second) + "]" << "";
 	TreeItem* mat_item = new TreeItem(materials, _rootItem);
diff --git a/MeshLib/MeshInformation.cpp b/MeshLib/MeshInformation.cpp
index 4e47444d6c6497ca5c58e4fa6b03733108ac8fdf..629d4b45920eb946c1cb37f03ea627598d088934 100644
--- a/MeshLib/MeshInformation.cpp
+++ b/MeshLib/MeshInformation.cpp
@@ -17,7 +17,7 @@
 #include "Elements/Element.h"
 
 
-const std::pair<unsigned, unsigned> MeshInformation::getMatBounds(MeshLib::Mesh const*const mesh)
+const std::pair<unsigned, unsigned> MeshInformation::getValueBounds(MeshLib::Mesh const*const mesh)
 {
 	const std::vector<MeshLib::Element*> elements (mesh->getElements());
 	const auto minmax = std::minmax_element(elements.cbegin(), elements.cend(),
diff --git a/MeshLib/MeshInformation.h b/MeshLib/MeshInformation.h
index 688bcb67b5f7a463383b95f4f04d8fc8c034fde6..59785a831e14b236ba0d60d60225b484b4619c9b 100644
--- a/MeshLib/MeshInformation.h
+++ b/MeshLib/MeshInformation.h
@@ -31,7 +31,7 @@ class MeshInformation
 {
 public:
 	/// Returns the smallest and largest MaterialID of the mesh.
-	static const std::pair<unsigned, unsigned> getMatBounds(MeshLib::Mesh const*const mesh);
+	static const std::pair<unsigned, unsigned> getValueBounds(MeshLib::Mesh const*const mesh);
 
 	/// Returns the bounding box of the mesh.
 	static const GeoLib::AABB<MeshLib::Node> getBoundingBox(MeshLib::Mesh const*const mesh);