fixed add-new-tree so that the plot can be empty when adding new tree