fixing boolean comparisons
Merge pull request #63 from zoide/e20b7d11c3bea3aab515527d143e707f800783b6

Fixing boolean comparisons