Fix bug in previous fix to getPage