Fixed skipping bug

Fixed bug where some pages were being skipped when there were more than
2 pages in the list