fixed bug for 1.1
Merge pull request #21 from Gourdboy/master

fixed bug for 1.1