device.map issue