Fixed sampleRate issue