segmentのバグを解消