fixed removeSegment??