Fix for rolling files with replication.