Fixed bug where BT code could hang on read.