fixed a problem in run_pipeline_segmentation.m