Fix wrong device_id reference