bug fix

fix bugs when delete the root