Fix pagination issues.

Pagination now works properly in all situations. Page size is set to 128, so
several blocks either fit within this, or contain exact multiples of that
number.