fix run error in monitor.py