fix monitor.sh