Fixes #223

Thanks @nightowl77
Merge pull request #1 from andrew13/master

Fixes #223