Endnote x7 wrong numbering

Good morning everyone. I am actually using Endnote x7 with microsoft word 365 and I am having a problem with bibliography: when I put third reference the system changes it to number 1 and first two citations in number 2 and 3. I really don’t understand what the problem really is and I would be grateful if anybody could help me. Thanks in advance