fix some bugs of BTree