Fix creating tree for automated root.json update (#2755)