Fixed minor bugs to allow site to run on the web server.