Fix for embedded document.