fix large file generate bug