Fixed initializing lattice boundaries.