fix manage.sh