write device id fix