Fix incorrect comparison in networkmonitor