fix first occurence of k in BST