Fix boolean comparison