Change range extend to work on measures too.