delete node bug fix