do_sampling's algorithm has been modified.
a bug of new do_sampling algorithm has bee fixed.