Fixed silly typos that caused exceptions