create-tree bugfix