Fixed code from Nick's suggestion
Merge pull request #2 from finapps/master

Fixed code from Nick's suggestion