fix bug that the previous line's end equals the next line's start