fix bugs in manage.py