Fixed broken extraction of LCS