Fix a bug in replication document