CPMT: Fix stupid error with pages.
The headers don't actually update right, so we cannot rely on them for the proper count, which leads to all sorts of problems with page order.