Bug fix in Monitor.py