A fix for #38
Merge pull request #40 from nivedred/master

A fix for #38