Reverted unintentional getMaxPage update.