Correctly handle booleans