Fix return value in getAllEvents