Bug fixed in getting lattice_vector