bugfix of measurements