Fix some typos

These causes to reference undefined variables or functions.
Merge pull request #1 from syohex/fix-typo

Fix some typos