try to fix $team_id variable