fixed bug in delete node with two children