Fixing bugs with poisson sampler.