Restores sampler.