Lexical rule losing CASE info

Why would a lexical rule be losing the CASE information that it is supposed to be adding?

Here’s two rules. The first one seems to work correctly:

sg-acc2-lex-rule := case2-lex-rule-super & infl-lex-rule &
  [ SYNSEM.LOCAL [ CAT.HEAD.CASE acc,
                   CONT.HOOK.INDEX.PNG.NUM sg ] ].
case2-lex-rule-super := add-only-no-ccont-rule &
  [ INFLECTED [ CASE2-FLAG +,
                INF-OR-PERNUM-TENSE-FLAG #inf-or-pernum-tense,
                CASE5-FLAG #case5,
                CASE1-FLAG #case1,
                DET-AGR-FLAG #det-agr ],
    DTR decl1-noun-lex &
        [ INFLECTED [ INF-OR-PERNUM-TENSE-FLAG #inf-or-pernum-tense,
                      CASE5-FLAG #case5,
                      CASE1-FLAG #case1,
                      DET-AGR-FLAG #det-agr ] ] ].

Result: [ CASE acc ] shown on the local AVM where it applied.

Here’s another rule, and this one does not seem to work properly:

sg-gen-masc-lex-rule := det-agr-lex-rule-super &
  [ SYNSEM.LOCAL.CAT.VAL.SPEC.FIRST.LOCAL [ CAT.HEAD.CASE gen,
                                            CONT.HOOK.INDEX.PNG [ GEND masc,
                                                                  NUM sg ] ] ].
det-agr-lex-rule-super := add-only-no-ccont-rule & infl-lex-rule &
  [ INFLECTED [ DET-AGR-FLAG +,
                INF-OR-PERNUM-TENSE-FLAG #inf-or-pernum-tense,
                CASE5-FLAG #case5,
                CASE2-FLAG #case2,
                CASE1-FLAG #case1 ],
    DTR det-agr-rule-dtr &
        [ INFLECTED [ INF-OR-PERNUM-TENSE-FLAG #inf-or-pernum-tense,
                      CASE5-FLAG #case5,
                      CASE2-FLAG #case2,
                      CASE1-FLAG #case1 ] ] ].

Result: [ CASE case ] on the mother in the local AVM where the rule applied.
The supertypes of the super-rules seem to be the same. What difference am I missing?

Oh, haha, it doesn’t put CASE on the mother, quite explicitly :).

So the solution is to have customization system put CASE not only on SPEC of the determiners but on the determiners themselves as well.