Fixed a bug in LatticeLexicon