getData for events fixed