fix mh-sampler 'last mode
use bernoulli instead of d2