a bug in LCS