fix bug with team_id=0