[DF-3871] Fixed typo. Fixed processing of material templates.