fixed bug in LM score method