fixed boolean comparison