fix bug of lcs

fix bug of lcs