fix bug when the headset is removed