fixed bugs in rejection sampler