fix device->device array copy