Set max per page before current page.

Pagerfanta will have an incorrect number of page if we don't set max per page before current page.