Fixed bug in univariate RAM sampler