fix the bug that can not read from writer for big file