Fixed result of read when reading file.