Fixed Pages[] initialization

- Pages[] now initialized to the correct amount of items.