Fixed comparisons between true and false types.