fixed auto segmentation