Fixed groupedEvents, it simply was not working before