Minor change to devices.cc that should fix most cases of oscillating networks