fix segmemnt bug
fix segmemnt bug