fix manage.php