Fix logic error

and not or