Fix a old bug.
Fix a type error bug.
Merge pull request #11 from alal/master

Fix a old bug.