fix issue with medal counts for events (thanks @jeroenooms)