Fix monitor script.