fix a bug in lattice service