Fix in file read error handing (bug #266)