fix samplerate update logic