Fixing small problem with lm script