fix monitor.sh for multi task