fix several bug in audio