fix lattice file path