Fixed delete node bug