bugfix for large proportion of kept points in subsampling