Update BLE.m

Bugs on line 1002 and line 1056.