fix segment creation based on existing segments