Fixed a bug that prevented reconnection with BT.