Fixed material export error.