fix sampler