Fixed mislabeling bug when multiple curves are sampled