Fixing issue with saving embedded refs in documents