Automation with arranger

Hi !

How can I keep the automation when I flatten the tracks with the arranger without messing with everything?

Cheers