Fix record wav issue