Work on copies to prevent crashes when the tree model changes

Authored by nienhueser on Feb 3 2017, 12:00 PM.