Fix critical bug in measurement code.