Fix some issues with presentation of dynamic headers in LibreOffice