Recursive tree editing fixed, issue #1