fix bst