Fix bad reference to this.pages