fix measure so that it animates correctly