Fix overreaching path segments.