fix issue12
Merge pull request #14 from rajatkapoor/issue12

fix issue12