fix retrieval of measurements and problem definition