Fix calculation of maxPage in /settings preventing the last page of settings from showing up.