fixed get_material_by_name