Fix modify devices.