Fixed reading of long lines