minor indicies problem in diffusion fixed