Fix for lines ending with EOF