rewrite segmentation label bugfix, docs