Fixed bug in gamma sampler.