fix a million-dollar bug in confusing parentId and pageId