Fix for related documents not replicating