fix bug constant in rules