Endnote and sections error!

Hi,

I have a big word document with different chapters and sections. I already have edit the style of endnote output to separate the references for each chapter/section. Till now worked everything perfect. But suddenly from the start of a new chapter and section, endnote suddenly add all the references from previous section to the new section and by this suddenly all my sections and lay out changes! I really don’t know what to do. I tried already everything and checked the end of every section so that it would not be continued or coupled to previous section.

I would appreciate if you could help me with this problem.

Kind regards