Fix invalid material_id