Some fixes in bluetooth connection handle