fixed a bug in btree