Fix the pagination issue with up-and-coming themes (bug 944096)

yeah I know if I see it it's not magic anymore