Fix team invites
Merge pull request #40 from scottferg/team_invites

Fix team invites