Fixing boolean comparisons

Hi there, here is the fix four #61.

Sorry for the delay, forgot to create the pull request.

Cheers,
udo.