Fixed a typo in material.cpp.