Fixed crashing when measured multiple times during life of Main