fixed getEvents