Fixed renderErrorPage() problem.