Fixes a logic error
Merge pull request #11 from VincentSit/patch-1

Fixes a logic error