fix bug when using lemma feature; around line: 1602 1319 1654