fix replication bug with storage policies ring loop