fixed typo in build LM code