Fixed some bugs that kept the site from running.