Fixing broken segments.