Fix a bug. Closes #102.
references #102
Merge pull request #168 from uonline/issue-102

Fix a bug. Closes #102.