fix the line ending format