Set your InDesign file to automatically place correct page numbers on each page.