fix loading of devices on prefs