maxTeam bug fixed