Fix page errors during builds.

fixes #1434
Merge pull request #1435 from halfdan/1434-page-errors

Fix page errors during builds.