fix switching audio device bug