Fix if clauses two places.

Two if statement checks need to be negated.
Merge pull request #79 from ziggimon/master

Fix if clauses two places.