Fixes segments.