fixed bug in manage.py