fix material list problem
Merge branch 'fix_material_list2'
Fix segfault on the material list