Fix inverted logic in 1207582b84455df76af68a536610daf3c0fe30c7