Remove close effect on lm function