Fix typo in device update code