fix drawing of numbers of segments.