Fix DoD pagination so it works when there's more than 10 pages.