fixed a bug where invalidated Or condition would return valid = True