fixed bug in device.jsp