Gibbs Sampler bugfixes