Add correct y-coord and avoid multple segments in a bin for the same sample