Update EventsManager.php