Rule validation fix