fix btree dealocation bug