fixed mcmc-reg bug