Fix creating new tree and person from scratch and clearing activeTree scope when switching trees