Fixed a couple errors that were causing the page to not work