Bug fixed in sampler with external sampling scheme