fixed boolean operation on np array