Fix typo and rename variables for clarity in Device::setOnInterfaces()