fix segment selection