Fix tree item container generator.