fixed measure bar length bug