Tree is not closed when node is deleted