sampler bugfix