Fix incorrect check
Merge pull request #38 from aderuwe/patch-2

Fix incorrect check