bug fix for BPTree delete