Fix bad material labels, addresses #2028.