fixed the team not being defined