fix large file replication bug