Automator Applescript for Pages

Hi all, i create a script to interact with active Pages document and it works.
The problema is that, when the script add some stuff in the document, i loose the format of the document (for example the centered character go to te left, bold is normal text etc.); i tried to avoid the analysis in body text, but nothing chages. Have you any suggest?

It would be difficult without seeing the actions in your workflow. Can you post them?