BUG FIXED: flaw on odd number of pages