Fix setting of virtural sites and postprocessing of dipoles.