fix wrong rendering on samplerate change