fix delete node bug