Fix Boolean Function