Fix comparison for booleans