fixed removal of node