BTree bug fixed