`contentDocument` fix