Fix returned page count