fix tree to working