update Manager.php