Add reloadNumberOfPages hack.