Fixed material export issue.