there is an issue getting the words in the headers to come out with the latest version of Libre Office. Apparently they broke the variables feature of Libre Office. (See: https://bugs.freedesktop.org/show_bug.cgi?id=60886 and http://ask.libreoffice.org/en/question/12160/libreoffice-4003-show-variable-not-working-in/). According to the conversation, the bug is fixed in version from 4.0.2 and they are available on the daily build site.
In any case if you have already installed version 4.0.0 and want to go back, you can uninstall it and install the 3.6.5 version using this link: http://www.oldapps.com/libreoffice.php?old_libreoffice=11815?download