Fixed manage.py bug