Fixed some typos that were causing code to break, should work fine now