Fix line ends