Follow-up: fix parsePages