fix type error.
Merge pull request #26 from charlescui/master

fix type error on macos 10.9