Fixed two simple typos

Fixed two simple typos that resulted in a NameError