line ending bug fix