fix a bug in replication document