tree bugfix