Fix bug if count_approx == n