Fixed multi segment bug