fixing node deletion.