fixed bug in BTree when a child's parent was not being updated