fix problem of long line EOF