fixed a bug.
Merge pull request #30 from jcrom/master

fixed a bug.