Run pdflatex twice; this seems to solve the strange page numbering glitch.