fixed the replication factor issue