Bad programming, but should work now

The only other way then rewriting all the BLE code. Have not tested yet.
Probably still would throw an error, but without having a belt - can not
test that.