small fixes in lattice class