Replication fixes for updated schema.