fix some line ending issues