Correct some errors in Gibbs sampling.