       SettingsTitleCellContext(title: "Team Members")
     ]]
 
-    for (index, member) in self.team.members.enumerated() {
+    for (index, member) in self.team.enumerated() {
       let context: Context?
       if let fbid = member.fbid, let name = member.name {
         context = TeamMembersContext.remove(fbid: fbid, name: name)

                                      name: member.name ?? "",
                                      isLead: member.isLead,
                                      isEditable: !member.isLead && editing,
                                      isLastItem: index == self.team.members.count - 1,
                                      context: context)
      ])
    }

    cells.append([
      SettingsActionCellContext(
        title: "Invite \(self.team.capacity - self.team.members.count) new team members",
        buttonStyle: .plain,
        context: TeamSettingsContext.invite)
    ])


      if let event = participant.currentEvent {
        self?.eventName = event.name
        self?.eventTeamLimit = event.teamLimit
        let members = participant.team?.members.map {
          Member(fbid: $0.fbid, name: names[$0.fbid], image: imageURLs[$0.fbid], isLead: $0.fbid == participant.team?.creator)
        }
        self?.team = members ?? []
      }

      self?.configure()
