Hello Bastien and Brady, The babel/export interface does not attempt to manage the header args when it rewrites source blocks. I think this code is pretty subtle. Check out the (let (... (replacement ...)) ...) code in ‘org-babel-exp-process-buffer’ and the attached patch which fixes the problem (superficially; I’m not sure if it’s the correct fundamental approach).