fixed cryst->amorph z direction diffusion bug