Fix crash in tournaments
Merge pull request #1090 from kotarou3/tournaments

Fix crash in tournaments