Fixed groupby in attendees model