fixed a bug in leaf node delete