Fix internal reference offset on pages.