Fix logical flaws.
Merge pull request #4 from SuperSpyTX/patch-1

Thanks @SuperSpyTX, I can't into logic