Fix dumb bug in the and/or logic