SegmentPlot: fix bug in name getting