fix manager.py bug