Fixed measurement bug.