Fix error in drawPercents