Fix tree template