bug fix  : the report with segmentation statistics were not generated at end of segmentation