Fixed a bug that caused the wrong page size to be recorded.