fixed lattice bug with new grid