Bugfix in bluetooth connection