cell segmentation bug fixed