fix measure correctness bug