Fixed bug in if cycle for activity attendees