Fixed the team invite bug