Fixed getting and referencing page ID