Fixed pagination for the simple theme.