fixes js bug on which machine is monitored