Fixed funny edge case on third page for > 5 pages