fixes bug: page numbers are zero-indexed