Does the X reflect the correct number? If not, go to format page numbers at the beginning of each section and tell it to restart at 1.
For the X, while editing the footer, press
Alt+F9 to display field codes. Change NUMPAGES to SECTIONPAGES. Press
F9. Press
Alt+F9.
Page Numbers in Word 2007-2016
Pagination Fields