fix a small bug for BST