Fix getEvents