code generation fix: cache