Fixed bug in sampling prior state in MCMC