fix segment