[IMP]hr_material: improve code and typo.