fix errors on device.html