Fix tree model