fix : end of segment