fixes the scope management of measurements