fix record bug

fix record bug because the sample rate