fixed a few mcmc bugs