fixing bug in issue19
Merge pull request #21 from opuneet/issue19_fix

fixing bug in issue19