Fixed #5708 (Improve oppositeInnerCondition)