Bug fix for the line whose end is not LF