fix tournament.addteam and tournament.getteam