Fixing segfault when adding replication policies.