Fixed bug in getInducedDipoles()