fix issus #15

this is my patch.
Merge pull request #16 from sbilly/master

fix issus #15