Fixed a rendering bug when re-rendering the existing page on error.