Remove calls to id_tree.edit(). Fixes #581