Fix rule match comparison.