Fixed bug in diffusion calculation in 2nd order stats