Fix page iteration, page numbers start at 1 not 0