bugfix for the calculation of self diffusion