Fix for PDF/XHTML exports.