Fix compatibility with 1.8.7.
Fix a typo.
Merge pull request #390 from namusyaka/fix-compat

Fix compatibility with 1.8.7