Fixed delete after node method