Fix boolean comparisons.