removed semicolons
fixed bug with too-aggressive LCS optimizations