Fix logic inversion.
Merge pull request #18 from nacin/logic-inversion

Fix logic inversion