minor: rename variables; fix type in PageTag