Correctly convert booleans