fix: file replication on crash