Fix boolean statement