Update EventManager.php