Bug fix with respect to lm file.