Fix boolean operations.