fixing wrong if for BT