fix line ending bug in ReadLog