Fixed bug in computeElectrodeKernel.