fix line ends