Fix calculation of maximum user page.