fix for bst