Fix affiliation being passed as string, not object