fixes population of the template tree component