Updated some typos

Fixed some incorrect variable references.