Change number of samples, remove empty path