in dist: fixed incorrect updating of sample N when data points are added to sample manually and there are multiple samples from the same graph.