bugfix measurementsFactory