fixing segments