Fixed a bug when setting root_branchset