Fix boolean expression