Fix overlapping curves