fix a bug (it occurrs if a specified material does not exist in .obj or .mat)