Fixed bug in bbtree