Fix bug in calculating participants