REmove curves when dataset changes.