Fix a bug in tournaments