Fix boolean comparisons