[DF-3178] Fixed updating issues. Refactoring of material templates.