How to refresh chapter's field in header?

[MacOs 10.11.2 (English), LibreOffice Version 4.4.7.2 (English)]

Hi everybody,

I’m trying to configurate a header with fields in order to display chapter numbers and names. By the moment, Libreoffice is displaying the fields, but there is a little lag in the first page of each new chapter, and I really don’t see how can I arrange this. The chapter’s field only works well after the second page of each new chapter. I tried adding a page break at the end of each chapter, but I’m still having the same lag.

This is an illustration of the problem:

  • Page 1 (This page is chapter 1).
  • Header: The chapter field prints “chapter 1” info : very good.
  • At the end of the page, the chapter ends: So I added a page
    break!
  • Page 2 (This page is chapter
    2)
  • Header: The chapter field prints “chapter 1” info: this is the problem.
  • Page 3 (This page is chapter 2)
  • Header: The chapter field prints “chapter 2” info: in the second page of this new chapter, the field works well.
  • At the end of the page, the chapter ends: So I added a page break!
  • Page 4 (This page is chapter 3)
  • Header: The chapter field prints
    “chapter 2” info: again, the problem
  • Page 5 (This page is chapter 3)
  • Header: The chapter field prints “chapter 3” info: that’s true!

Somebody knows this problem? There is a way to solve it?