Fixed number of pages not being reset to 0