Fix the bug of occasional crush.
Fix the error when reading big files.