Fixed friend template.