Fixed another bug in the potential calculation

All is right now, I tested the multipolar expansion against
a direct sum calculation, and the results didn't differ by
more than 0.5%.