Tentatively fix non CR terminated file bug.