bluetooth: fix crash issue