Fix page errors during builds.

fixes #1434