fix a bug in Inert of BST