fixed getEvent return value