diff --git a/InSituLib/VtkMappedPropertyVectorTemplate-impl.h b/InSituLib/VtkMappedPropertyVectorTemplate-impl.h
index 7cec88ba74204f7fd8d325802f5d43cd8b22d9ae..c276b6b62f08c512ff1d1610ede5623a7086de01 100644
--- a/InSituLib/VtkMappedPropertyVectorTemplate-impl.h
+++ b/InSituLib/VtkMappedPropertyVectorTemplate-impl.h
@@ -43,7 +43,7 @@ template <class Scalar> void VtkMappedPropertyVectorTemplate<Scalar>
 	this->Initialize();
 	_propertyVector = &propertyVector;
 	this->NumberOfComponents = _propertyVector->getTupleSize();
-	this->Size = this->NumberOfComponents *  _propertyVector->size();
+	this->Size = this->NumberOfComponents *  _propertyVector->getNumberOfTuples();
 	this->MaxId = this->Size - 1;
 	this->Modified();
 }