Fix bug $device->$vars