Corrected boolean handling

Trivial fix for correct handling of boolean values