Fix read error which may cause large files to read more than the file size