fixed a critical bug in the diffusion propensity