fixed lm update bug