fixed get first-line code in sls-mode