Fix bug in lattice view