fix double sampler