fix bitwise or to logical or